from django.conf.urls.defaults import *
from comet.views import update, chat, write
from os import path

static_path = path.dirname(path.abspath(__file__))+'/../static/'

urlpatterns = patterns('',
    url(r'^$', chat, name='chat'),
    url(r'^write$', write, name='write'),
    url(r'^update$', update, name='update'),
    url(r'^static/(?P<path>.*)$',
        'django.views.static.serve', {'document_root': static_path}),
)
